Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webdriverjs): skip unloaded iframes #743

Merged
merged 4 commits into from
Jun 8, 2023
Merged

Conversation

straker
Copy link
Contributor

@straker straker commented Jun 7, 2023

Closes #744

@straker straker requested a review from a team as a code owner June 7, 2023 22:45
Zidious
Zidious previously requested changes Jun 8, 2023
Copy link
Contributor

@Zidious Zidious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small things inline -

packages/webdriverjs/src/index.ts Outdated Show resolved Hide resolved
Comment on lines +243 to +248
/*
When switchTo().frame() fails using chromedriver (but not geckodriver)
it puts the driver into a really bad state that is impossible to
recover from. So we need to switch back to the main window and then
go back to the desired iframe context
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -0,0 +1,15 @@
<!DOCTYPE html>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NBD - Do we want these fixtures to live in the axe-fixtures repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. I should probably move them since puppeteer also has this same issue. I'll add this as a tech debt ticket since I'd like to get this released without waiting to add it to the fixture repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-authored-by: Gabe <41127686+Zidious@users.noreply.github.com>
@straker straker merged commit 9cb50eb into develop Jun 8, 2023
12 checks passed
@straker straker deleted the fix-switchto-fail branch June 8, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webdriverjs hangs when page has lazy loaded iframe
3 participants